package org.flowable.editor.language.json.converter;

import java.util.Map;

/**
 * BpmnJsonCustomConverter
 *
 * @author By: JlCloud <br>
 * @Package: com.jlcloud <br>
 * @CreateTime: 2024-12-03 21:45 <br>
 * @Copyright: 2021 www.jilianjituan.com Inc. All rights reserved. <br>
 * @Caution 注意：本内容仅限于冀联人力集团内部传阅，禁止外泄以及用于其他的商业目的 <br>
 */
public class CustomBpmnJsonConverterContext extends StandaloneBpmnConverterContext {
	private final Map<String, String> formKeyMap;
	private final Map<String, String> decisionTableKeyMap;

	public CustomBpmnJsonConverterContext(Map<String, String> formKeyMap, Map<String, String> decisionTableKeyMap) {
		this.formKeyMap = formKeyMap;
		this.decisionTableKeyMap = decisionTableKeyMap;
	}

	@Override
	public String getFormModelKeyForFormModelId(String formModelId) {
		return formKeyMap.get(formModelId);
	}

	@Override
	public String getDecisionTableModelKeyForDecisionTableModelId(String decisionTableModelId) {
		return decisionTableKeyMap.get(decisionTableModelId);
	}
}
